package Bai09;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Point;
import java.io.Serializable;

@SuppressWarnings("serial")
public abstract class Capture implements Serializable{
	
	protected Point startP;
	protected Point endP;
	protected Color color;
	protected float size=1;
	public void setStartP(Point startP) {
		this.startP = startP;
	}
	public void setEndP(Point endP) {
		this.endP = endP;
	}
	public void setColor(Color color) {
		this.color = color;
	}
	public void setSize(float size) {
		this.size = size;
	}
	public abstract void draw(Graphics g);
	public abstract void add(Capture c);
	public abstract void remove();
	
	
}
